<footer>
<if condition="$pb neq 1">
    <div class="container">
        <empty name="xue_u.0">
            <div class="col-xs-3">
                <img src="Public/dist/image/logo.png" width="120">
                <p>{$seo_title}</p>
                <p>课程内容版权均归
                    <br>{$site_zbdw}所有</p>
                <p>{$site_no}</p>
            </div>
            <else />
            <div class="col-xs-3"></div>
        </empty>


        <div class="col-xs-3">
            <h2>服务中心</h2>
            <volist name="urll" id="vo" key="k">
                <if condition="$vo['catid'] eq '2' ">
                    <p>
                        <a <if condition="$vo['title'] eq '问题反馈' ">data-toggle="modal" data-target="#feedback"
                            <else /> href="index.php?m=Article&a=show&id={$vo.id}" target="_blank" </if> border="0">{$vo.title}</a>
                </p>
                </if>
            </volist>

            <p>
                <a href="index.php?m=Feedback&a=join">加入共建课程</a>
            </p>
        </div>
        <div class="col-xs-3">
            <h2>相关链接</h2>
            <YP:link typeid="3" linktype="1" order="listorder desc">
                <p>
                    <a href="{$r['siteurl']}" target="_blank">{$r['name']}</a>
                </p>
            </YP:link>
        </div>
        <div class="col-xs-3">
            <empty name="xue_u.0">
                <p>主办单位：{$site_zbdw}</p>
                <else />
                <p>主办单位：{$site_zbdw}
                    <br/>　　　　　&{$xue_u.1}</p>
            </empty>
            <p>咨询热线：{$site_hotline}</p>
            <p>传真号码：{$site_fax}</p>
            <br>
            <br>
        </div>
        <empty name="xue_u.0">
            <div class="col-xs-12 text-center pt-20">Copyright ©{$site_zbdw} 版权所有
                <!--<img src="http://www.beian.gov.cn/img/ghs.png"> 闽公网安备 {$site_an}号-->
            </div>
            <else />
            <div class="col-xs-12 text-center pt-20">Copyright ©{$site_zbdw}&{$xue_u.1}版权所有
                <!--<img src="http://www.beian.gov.cn/img/ghs.png"> 闽公网安备 {$site_an}号-->
            </div>
        </empty>
    </div>
	</if>
</footer>

<div class="modal fade" id="feedback">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">×</span>
                    <span class="sr-only">关闭</span>
                </button>
                <h4 class="modal-title">问题反馈</h4>
            </div>
            <form>
                <div class="modal-body">
                    <div class="form-group clearfix">
                        <label for="Input1" class="col-sm-3">问题简述：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="input1" required>
                        </div>
                    </div>
                    <div class="form-group clearfix">
                        <label for="text1" class="col-sm-3">反馈描述：</label>
                        <div class="col-sm-9">
                            <textarea id="text1" class="form-control" rows="3" required></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary">提交问题</button>
                </div>
            </form>
        </div>
    </div>
</div>

<!-- 基础js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zui/1.7.0/js/zui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<script src="__PUBLIC__/dist/js/main.js"></script>
<!-- 基础js end-->
<script>
    $("#feedback .btn").on("click", function () {
        var j = $("#input1").val();
        var m = $("#text1").val();

        if (j || m) {
            $.post("index.php?m=Feedback&a=addfeed", {description:j,content:m}, function (result) {
                alert("提交成功")
                $("#feedback").modal("hide");
            })
        } else {
            alert("请输入反馈内容");
            return false;
        }
    })


    $(function () {
        //active show
        // var search = window.location.search;
        var href = window.location.href;
        var urll = document.location.toString();
        var arrUrl = urll.split("/");
        if(window.location.search == "" || arrUrl[3] == '' || arrUrl[3] == 'index.php') return $("header .link a").eq(0).addClass("active");
        $("header .link a").each(function () {
            // var $this = $(this);
            // var href = $this.attr("href");
            // href = href.replace(/index.php/g, "");
            // if (href == search) {
            //     $this.addClass("active");
            // }

            var that = $(this);
            var link = that.attr("href").replace("index.php?","")
            if(href.search(link) >= 1){
                $(this).addClass("active");
            }

        })
    })
</script>

<script>
    window.alert = function(name){
        var iframe = document.createElement("IFRAME");
        iframe.style.display="none";
        iframe.setAttribute("src", 'data:text/plain,');
        document.documentElement.appendChild(iframe);
        window.frames[0].window.alert(name);
        iframe.parentNode.removeChild(iframe);
    };
</script>